correcting wrong info in doc
missing last part of ternary operator
refactoring