are you using this method in a view?