modifying fix as per max's request
adding additional comments