fixed datatype declarations, changed clos type to an expr type