maybe even a ternary is better here