thanks for the hint. I added the first option and now check in the beginning if A isempty.