updated writelp