trying to implement atomics, kernel keeps hanging for me