make logic clearer with brackets