added a new helper for form serialization