seperate gems with template