changed constructor parametres