made the code to compile with nimrod 0.9.4