finally solved heinous type error