added style function back in