jshinted and tested on different stream