standardize logic blocks