grantform
grantform related functions.