add back the occupied if statement in paint

remove and clear rely on this to work