improve the sticky directive