implementation problem, easy, need to enhance coding speed