simplified extensions

great use of ternary operator