Fixed syntax, removed redundant code