better version snippet