minor improvements

+profile var
+cleanup