fixed bug (omitted data function)