changes for a and b