logic implemented input and output limitation