ERROR:constants and expressions are invalid in read-only I/O