added ends with
fixed styling