added function for dealing with the ing form