my buggy codes need to solve!