added pojo functionality