modify constructor implementation to discard input buffer