preparing to add cuda specific code