refactoring variant info writter