bonus done for arrays