changed temps and fixed semicolon missing