fixed return for special functions