changed the form name and debugged the function