fixing facen loop