started implementing gargl function editting