tweaked camera logic to be more succinct