fixed deceptive function