changed api to 2.2