plant helper functions