indexer functions
Initial Patch structures
implemented patch functions