tweak to css logic