adding a missing method and removing unused functino