added a if for the case when defaults don't exist