added style functionality