added empty check
adding entry to pocket index works