handling input spec