updated init() method to register parameters