fix dosc formula (i swear it worked at some point...)