added aff.c for printing purposes