fix returned value