Refactoring: change colorbox by perimeterbox