freq should be a function instead of alias for proper piping