neat solution Peter - sorry for not getting to reply earlier