add notes and change closes pattern