refactor fitness-calendar trainer's functions