an elegant solution, thanks.