[COS] clean code