modified for matrix job usage