refactor amount filtering helpers