fixed schema definiton problem