updated code to fix bug in declination for C5