added comments to clarify mode prop functions