changed Environment 。 额额呃呃呃

fixed lots of bugs. changed how to call functions.