added method to create obj