changed constructor type