changed a few line in code as I continued to receive an error