try to fix frozen bug which coused some setinterval function
jo
jo
jo
jo
jo
jo
comment: jo used to fix some errors now wont freeze changed function to smarter one