added schema related info
added typecast to correct error