code explaining / cleanup