update rectangle if layer changes
remove all coordinates references in print