added submit query