using error instead of none even though it is irrelavant because filter will be set to min