mostly function has finished
ver0.8