addded minor fixes