added codes for violin study