preparing for cuda