possibly found the bug, need to test it