fixed an issue in syntax and an issue when calling functions from another file