here I share codes to help friends solving some problems.