added sign checks to expand/contract