old code submit