removing error part of code