formatting, handling temp calculations