minor performance improvement