moving maintain statements to footer