added helper functions, modifying dates and stuff