removed bug code