fixed returnig array amount