fixed compile error by returning null