updated version number
proper usage of function constructor