fixed an error, made comments clearer