main submit