fix, reduce returned code by returning undefined