On forced oscillations of lagrangian systems