removed debug from code as it is now in lib