gene diagram reimplemented