still trying to fix error msg