replaced hours with duration