Fixed syntax error
Refactored