aded check for debug build