removed debugging functions