coded modulars to clean occupancy data