merged into one if-elif-else construct