replaced inline style with class