basic like function done
basic like function done(bug fixed)