adding code solving errors...