added Objective C methods