changed code place to salve error