added plane and some changes