live funstion modified