fixed syntax error
little refractor