use instance_variable_get instead of eval