converted to modern objc syntax
convert to ARC