some small programs for survey