before type function remove