aded metric subroutine rig + entries on the makefile