continuous sim function