removed hardcoded result of write method