working on arrays
updated slightly