remove useless method and outlet