40 is preety high, you probably need to bump up your water changes to 20% a weeek. Also, try to feed less and see if your nitrates go down. Other than that, your skimmer is probably underrated for that size of a tank. Oh and one thing I forgot to ask was, how old is your tank?