use idiomatic JS
idea is acting up