fixed lab5 filling