added symbols
added user function and removed bug