ok, fixed all that array stuff. works now