some code issues