cleaning code
calibrating constants