A note on monomial ideals