removed some code for debugging