updated to hibernate complete