code cleanup for sensiolabs insight