added method for any array