created define_scope feature