added new gpu code