remove useless lines and add reflect utils