add figsave param to name the resulyng plot