worked on the modal