fixed handling class attribute and function parameter assignment