fixed bad reference to inarray method