[*] return result without placing it in a variable
[*] formatting information about error
[*] correcting code readability