tidy up array creation
get rid of fastmath