added private and deleted flag