added a inbox method