Scientists have found a way to remove side effects from drugs