minor #with logic fix. update document