make returned pointer modifiable