all code functioning