fixed issue that returned nil, completed ex 8