removed errors in code