script for building Metamer updated