weird functions error