added indentation to function so to not get confused with brackets ;)