changed the method around to get multiple objects