just a small if simplification