handle error for a single expressions
fixed the class error