added comment to ternary statment