tryng to avoid console errors