fixing some errors i.e. width