changed the method of accessing objects