move regexp to top level. Does not matter much, just prefer it