Do not touch the methods var, just filter the selector to get the selected method