fixed type in techmd function