function for get DC value