move find code to attrs