changed returning solution to arrays