calculations converted to gpu - first step