found the error withour debugging