[#7] fixed constructor