submit functions added