add iteration of bodies
functions for running code only if a value isn't nil