Working with errors

Everything is working except for xs size behavior, probably to do with
recursive iteration since there is nothing below xs