added method to deteremine object array