refactored cell configuration