added pattern and selection color