Removal of not using function