update mask

mask is now in cuda, begin to test and apply the main func in cuda