removed array methods require statements
put some of bsic into own method