all works without scroll function