move find code to attributes