added version date to build function