returning # but not working with cases