miscellaneous coding problems