adding coefficient checks