added construct function that was removed accidentally