fix wrong types and add initial method