tried a different method of modal