added some bezier curve functions