fix backend calculation