updated due to Xcode warning