pending marks implemented - not working for nested marks yet