finding periods