fixed error with data type