generating simple code