time subtraction works! serious cleanup needed