amazingly working now but wrongly