cleanup code from coffeescript conversion