use where instead of find_all_by and add assets file