bug fixing diving into xcode