remove unnecessary methods.