suggested fixes for method nil