finalizing pencil layout