works with multiline declarations