logic with multi submit