checking sub formatting