shortened everything and removed all unnecessary array functions, looks better!!