fixed if records don't exist