fixed errors, but texture not showing