potential solution for modal