added snippet stuff