submitting function working