finally got submission working