fix expanding def
partial function charat