added  argument to constructor