dealing with periods