include functionality for cropinput