setting up before starting