writing qgen