taking locals out of the variable