thanks for the snippet