implementing functions. integer inputs are rendered but results no