created launch function