added inputs to squares