sometimes  the code works. sometimes just don't;