code issues

You'll need to post the whole sketch to get any meaningful help.