fixed bug after updating data, modified programs