trying without setTimeout