added some of the styles from c+t's code