added type cast to parameter