less code complexity