working answers, fixed buffer