gave credit to head scroller implmentation