works for '<, >, >>'