s and t flags were swapped