min modification, added docs