add fallback method for null values