updating funciton firm type related code