changing around location of initialization