fixed value arg so that it handles nulls