merged raw and fg into one