debugging & added footer