few code issues