deleting temp vars(#5)