preperations for bezier implementation