fixed stale data alert; var and whitespace clean up