remove methods that are not allowed