(manual) cleaner way of typing return values