repairing my obvious errors