simplifying code for build MARK II