add main functions for 8872 form