using delay instead of dirty workaround