remove attributes of the return type of callback functions