catch error when nonfunction is called like a function
catch error when a function is treated like data