hw4 working external parameters