Some junk source codes, need improvements