remove methods and blocks