main.c edits