bug fix

- changed location of a line
- deleted console.log statement