Fixed some issues with a,b,c,d