some coding problem