code style changed
reusing of the code