added snippet mageclass