fixed williams bad coding