fixed a bug and added a usage tip