modification for iscroll
created if else