modals loop - getting close