minor coding problems