added period trace shape drawing