removed Log and debug statements