added rep and dist. L & F changes