some coding problems