will fix error method later