camera up and down, some minor code cleanup