use declarations instead of scopes when it's more apropriate