error handeling was added and first attempt arrows