switched to filters instead of calling function on scope