you are calling the up fucntions more times and use time_step

if(!proc_status(up))
{
up():
}

height += 0.02*time_step;


"empty"