output dc correctly