Corrected variable decleration from dc to ds and initialized to zero