add funtion of read file input and decode bug