removed some code to allow compiling