fixs but core is not defined :\