trouble with page break function