cuda final

final version