using hash key in scope model