errors in bar.c