fixed all those pesky res statements.