logging added
junit test added