added gpu method