beautified
code in a function (07.2013)