fixed omitted function problem