to avoid warnings of not always returning a value