add the covert code. the Style issue has some wrong.