removal of useless method