changes to funcs in operations.go. wip