clean up code + correct size footer search